package com.seednia.foundation.framework.service;

import java.util.Comparator;

/**
 * Comparator for service. It sorts by the order property.
 * 
 * @author Young Suk Ahn
 *
 */
public class ServiceComparator implements Comparator {

	@Override
	public int compare(Object arg0, Object arg1) {

		IService svc0 = (IService)arg0;
		IService svc1 = (IService)arg1;
		return svc0.getOrder() - svc1.getOrder();
	}

}
